/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-07-24
*/
package com.rzico.order.entity;

import com.rzico.annotation.IgnoreSwaggerParameter;
import com.rzico.basics.entity.Product;
import lombok.Data;
import java.util.Date;
import javax.persistence.*;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * <pre>
 *   虚拟商品数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_virtual_product")
public class VirtualProduct{

    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "创建日期" )
    protected java.util.Date createDate;

    @ApiModelProperty(value = "修改日期" )
    protected java.util.Date modifyDate;

    @ApiModelProperty(value = "成本金额" )
    protected java.math.BigDecimal cost;

    @ApiModelProperty(value = "购买金额" )
    protected java.math.BigDecimal price;

    @ApiModelProperty(value = "优惠金额" )
    protected java.math.BigDecimal discount;

    @ApiModelProperty(value = "数量" )
    protected java.math.BigDecimal quantity;

    @ApiModelProperty(value = "类型 {0.产品,1:套餐,2:水票,3.压桶}" )
    protected  Integer subType;

    @ApiModelProperty(value = "商品名称" )
    protected String name;

    @ApiModelProperty(value = "商品编号" )
    protected String sn;

    @ApiModelProperty(value = "商品规格" )
    protected String spec;

    @ApiModelProperty(value = "单位" )
    protected String unit;

    @ApiModelProperty(value = "商品规格" )
    protected String thumbnail;

    @ApiModelProperty(value = "单据类型(1.买入,2.退款,3.使用,4.赠送,5.作废)" )
    protected Integer virtualType;

    @ApiModelProperty(value = "商品规格" )
    protected Long productId;

    @ApiModelProperty(value = "订单id" )
    protected Long orderId;

    @ApiModelProperty(value = "订单号" )
    protected String orderSn;

    @ApiModelProperty(value = "所属企业" )
    protected Long enterpriseId;

    @ApiModelProperty(value = "虚拟库存ID" )
    protected Long virtualStockId;

    @ApiModelProperty(value = "客户ID" )
    protected Long memberId;

    @ApiModelProperty(value = "送货单" )
    protected Long shippingId;

    @ApiModelProperty(value = "退货单" )
    protected Long returnId;

    @ApiModelProperty(value = "门店ID")
    protected Long shopId;

    @ApiModelProperty(value = "送货员ID")
    protected String shippingEmployeeId;


}
